package cn.liujianbo.example.springbean.bean2.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author 刘建波
 * @date 2021-10-10 20:51
 */
@Component
public class UserService {
    private OrderService orderService;

    public UserService(OrderService orderService){
        this.orderService = orderService;
    }

    @Autowired
    public UserService(OrderService orderService, OrderService orderService2){
        this.orderService = orderService;
    }
}
